Skip to content

Conversation

@duncanista
Copy link
Contributor

What?

Adds the runtime tag to the invocation span and metric tags.

Screenshot 2024-11-21 at 10 24 06 AM Screenshot 2024-11-21 at 10 24 36 AM

@duncanista duncanista requested a review from a team as a code owner November 21, 2024 18:24
Comment on lines +188 to +193

if let Some(runtime) = &self.runtime {
self.span
.meta
.insert(String::from("runtime"), runtime.to_string());
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we actually need this, it looks like previous versions have the runtime tag in spans, but not sure if this is done in backend or tracer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need it


// Resolve runtime only once
let runtime = resolve_runtime_from_proc(PROC_PATH, ETC_PATH);
self.enhanced_metrics.set_runtime_tag(&runtime);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely needed tho

tags_map
}

#[allow(dead_code)] // keeping this logic for when async runtime resolution will be supported
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove this now, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah

@duncanista duncanista merged commit f7695f5 into main Nov 21, 2024
11 checks passed
@duncanista duncanista deleted the jordan.gonzalez/bottlecap/add-runtime-tag branch November 21, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants